/**
 * 摄像机设备表 api 封装
 *
 * @Author:    zhangzhengwen
 * @Date:      2024-09-12 17:39:43
 * @Copyright  jz
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const cameraDevicesApi = {

  /**
   * 分页查询  @author  zhangzhengwen
   */
  queryPage : (param) => {
    return postRequest('/cameraDevices/queryPage', param);
  },

  /**
   * 增加  @author  zhangzhengwen
   */
  add: (param) => {
      return postRequest('/cameraDevices/add', param);
  },

  /**
   * 修改  @author  zhangzhengwen
   */
  update: (param) => {
      return postRequest('/cameraDevices/update', param);
  },


  /**
   * 删除  @author  zhangzhengwen
   */
  delete: (id) => {
      return getRequest(`/cameraDevices/delete/${id}`);
  },

  /**
   * 批量删除  @author  zhangzhengwen
   */
  batchDelete: (idList) => {
      return postRequest('/cameraDevices/batchDelete', idList);
  },

  /**
   * 设备下拉接口  @author  zhangzhengwen
   */
  queryAll: (idList) => {
    return getRequest('/cameraDevices/queryAll', idList);
},

};
